import { _props } from "./canvas.js";
export const _circle = (ctx, options = {}, props = {}) => {
    let { o, r, centre } = options
    ctx.save();
    ctx.lineWidth = 1;
    _props(ctx, props)
    ctx.beginPath();
    ctx.arc(o[0], o[1], r, 0, Math.PI * 2, false);
    // this.isInPath(ctx, o, 9999)
    ctx.stroke();
    ctx.fill();
    ctx.restore();
    if (centre) {
        _circle(ctx, {
            o, r: 3
        }, {
            fill: 'red',
            stroke: 'none'
        })
    }
}